import http from '../request.js'

// 获取数据库列表
let getTableList = (url) => {
    return http.req(
        'get',
        url = 'system/dataBase/getTableList',
        null,
        null
    )
}

// 获取数据库详情
let getColumnList = (url, tableName) => {
    return http.req(
        'get',
        url = 'system/dataBase/getColumnList?tableName='+tableName,
        null,
        null
    )
}

// 导出数据库
let exportDataBase = (url, tableName, responseType) => {
    return http.req1(
        'post',
        url = "system/dataBase/export?tableName="+tableName,
        null,
        null,
        'blob'
    )
}


export default {
    getTableList,
    getColumnList,
    exportDataBase
}